package com.city.service.auth.impl;

import com.city.domain.auth.AuthLevelOne;
import com.city.repository.auth.AuthLevelOneRepository;
import com.city.service.auth.AuthLevelOneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AuthLevelOneServiceImpl implements AuthLevelOneService {

    @Autowired
    private AuthLevelOneRepository authLevelOneRepository;

    @Override
    public List<AuthLevelOne> findAll() {
        return authLevelOneRepository.findAll();
    }

    @Override
    public void save(AuthLevelOne authLevelOne) {
        authLevelOneRepository.save(authLevelOne);
    }
}
